﻿using UnityEngine;

public enum ENUM_Weapon
{
	Null = 0,
	Gun,
	Rifle,
	Rocket,
}

public class Weapon
{
	protected ENUM_Weapon m_EmEwapon = ENUM_Weapon.Null;
	protected int m_AtkValue = 0;//攻击力
	protected int m_AtkRange = 0;//攻击距离
	protected int m_AtkPlusValue = 0;//额外加成

	public Weapon(ENUM_Weapon type, int atkValue, int atkRange)
	{
		m_EmEwapon = type;
		m_AtkValue = atkValue;
		m_AtkRange = atkRange;
	}

	public ENUM_Weapon GetWeaponType()
	{
		return m_EmEwapon;
	}

	public void Fire(ICharacter target)
	{
		//
	}

	public void SetAtkPlusValue(int atkPlusValue)
	{
		m_AtkPlusValue = atkPlusValue;
	}

	public void ShowBulletEffect(Vector3 targetPosition, float lineWidth, float displayTime)
	{

	}

	public void ShowShootEffect()
	{

	}

	public void ShowSoundEffect(string clipName)
	{

	}
}
